public class dy implements Cloneable {
    private waiz s1 = new waiz();
    @Override
    public dy clone() throws CloneNotSupportedException {
        dy d5 = (dy) super.clone();
        d5.s1 = d5.s1.clone();
        return d5;
    }

    public static void main(String[] args) throws CloneNotSupportedException {
        dy d2 = new dy();
        d2.s1.setS(1000);
        dy d3= (dy) d2.clone();
//        d3.s1=d3.s1.clone;clone

//        waiz d1=s1.s.clone();
//        System.out.println(s2.s1.s);
        d3.s1.setS(2000);
        System.out.println();
//        System.out.println(s2.s1.s);
//        System.out.println(s2==s3);

    }
}